package com.bah.tract.client.workstore.jira;

import com.bah.tract.client.workstore.Effort;

public class JiraWork extends Effort {
	private String issueNumber;

	private String label;

	private String serviceUrl;

	private String projectKey;

	public final String getServiceUrl() {
		return serviceUrl;
	}

	public final void setServiceUrl(final String serviceUrl) {
		this.serviceUrl = serviceUrl;
	}

	public final String getProjectKey() {
		return projectKey;
	}

	public final void setProjectKey(final String projectKey) {
		this.projectKey = projectKey;
	}

	public final String getLabel() {
		return label;
	}

	public final void setLabel(final String label) {
		this.label = label;
	}

	public final String getIssueNumber() {
		return issueNumber;
	}

	public final void setIssueNumber(final String issueNumber) {
		this.issueNumber = issueNumber;
	}

	@Override
	public final int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((issueNumber == null) ? 0 : issueNumber.hashCode());
		return result;
	}

	@Override
	public final boolean equals(final Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		final JiraWork other = (JiraWork) obj;
		if (issueNumber == null) {
			if (other.issueNumber != null) {
				return false;
			}
		} else if (!issueNumber.equals(other.issueNumber)) {
			return false;
		}
		return true;
	}

}
